﻿using JX.Core.Entity;
using JX.Infrastructure.Field;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data;
using System.Linq;
using System.Threading.Tasks;

namespace JXWebSite.Areas.Admin.Components
{
	/// <summary>
	/// 所属销售视图实体类
	/// </summary>
	public class MySalesViewModel
	{
		/// <summary>
		/// 控件ID前缀，同一个页面上，有多个组件时，用于区分相同控件的名称
		/// </summary>
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public string Prefix { get; set; } = string.Empty;
		/// <summary>
		/// 业务经理所属的角色ID，为0时，取上级管理员为空的数据
		/// </summary>
		public int RoleID { get; set; } = 0;
		/// <summary>
		/// 业务经理
		/// </summary>
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public string SalesManager { get; set; } = string.Empty;
		/// <summary>
		/// 业务员
		/// </summary>
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public string Sales { get; set; } = string.Empty;
	}
}
